﻿using System;

namespace diantou.web.enterprise
{
    /// <summary>
    /// 考试问题关系
    /// </summary>
    struct examQuestion
    {
        /// <summary>
        /// 题目
        /// </summary>
        public diantou.examDataAccess.examQuestion Question;
        /// <summary>
        /// 考试标识
        /// </summary>
        public int ExamId;
        /// <summary>
        /// 判断题目是否已经加入考卷
        /// </summary>
        public bool IsExam
        {
            get
            {
                if (ExamId == 0) return false;
                return diantou.examDataAccess.tcpCall.examItem.isQuestion(ExamId, Question.Id);
            }
        }
    }
}
